home *** CD-ROM | disk | FTP | other *** search
- unit MultipleSTAServer_TLB;
-
- // ************************************************************************ //
- // WARNING
- // -------
- // The types declared in this file were generated from data read from a
- // Type Library. If this type library is explicitly or indirectly (via
- // another type library referring to this type library) re-imported, or the
- // 'Refresh' command of the Type Library Editor activated while editing the
- // Type Library, the contents of this file will be regenerated and all
- // manual modifications will be lost.
- // ************************************************************************ //
-
- // PASTLWTR : $Revision: 1.88.1.0.1.0 $
- // File generated on 02/06/2000 17:19:51 from Type Library described below.
-
- // ************************************************************************ //
- // Type Lib: D:\Magazines\Work In Progress\60 - Aug 00\COM Threading\Files\MultipleSTAServer.tlb (1)
- // IID\LCID: {773BF93B-38A7-11D4-96EC-0060978E1359}\0
- // Helpfile:
- // DepndLst:
- // (1) v2.0 stdole, (C:\WINDOWS\SYSTEM\STDOLE2.TLB)
- // (2) v4.0 StdVCL, (C:\WINDOWS\SYSTEM\STDVCL40.DLL)
- // ************************************************************************ //
- {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
- interface
-
- uses Windows, ActiveX, Classes, Graphics, OleServer, OleCtrls, StdVCL;
-
- // *********************************************************************//
- // GUIDS declared in the TypeLibrary. Following prefixes are used:
- // Type Libraries : LIBID_xxxx
- // CoClasses : CLASS_xxxx
- // DISPInterfaces : DIID_xxxx
- // Non-DISP interfaces: IID_xxxx
- // *********************************************************************//
- const
- // TypeLibrary Major and minor versions
- MultipleSTAServerMajorVersion = 1;
- MultipleSTAServerMinorVersion = 0;
-
- LIBID_MultipleSTAServer: TGUID = '{773BF93B-38A7-11D4-96EC-0060978E1359}';
-
- IID_ISTAObject: TGUID = '{773BF940-38A7-11D4-96EC-0060978E1359}';
- CLASS_STAObject: TGUID = '{773BF942-38A7-11D4-96EC-0060978E1359}';
- type
-
- // *********************************************************************//
- // Forward declaration of types defined in TypeLibrary
- // *********************************************************************//
- ISTAObject = interface;
- ISTAObjectDisp = dispinterface;
-
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library
- // (NOTE: Here we map each CoClass to its Default Interface)
- // *********************************************************************//
- STAObject = ISTAObject;
-
-
- // *********************************************************************//
- // Interface: ISTAObject
- // Flags: (320) Dual OleAutomation
- // GUID: {773BF940-38A7-11D4-96EC-0060978E1359}
- // *********************************************************************//
- ISTAObject = interface(IUnknown)
- ['{773BF940-38A7-11D4-96EC-0060978E1359}']
- procedure Foo; safecall;
- end;
-
- // *********************************************************************//
- // DispIntf: ISTAObjectDisp
- // Flags: (320) Dual OleAutomation
- // GUID: {773BF940-38A7-11D4-96EC-0060978E1359}
- // *********************************************************************//
- ISTAObjectDisp = dispinterface
- ['{773BF940-38A7-11D4-96EC-0060978E1359}']
- procedure Foo; dispid 1;
- end;
-
- // *********************************************************************//
- // The Class CoSTAObject provides a Create and CreateRemote method to
- // create instances of the default interface ISTAObject exposed by
- // the CoClass STAObject. The functions are intended to be used by
- // clients wishing to automate the CoClass objects exposed by the
- // server of this typelibrary.
- // *********************************************************************//
- CoSTAObject = class
- class function Create: ISTAObject;
- class function CreateRemote(const MachineName: string): ISTAObject;
- end;
-
- implementation
-
- uses ComObj;
-
- class function CoSTAObject.Create: ISTAObject;
- begin
- Result := CreateComObject(CLASS_STAObject) as ISTAObject;
- end;
-
- class function CoSTAObject.CreateRemote(const MachineName: string): ISTAObject;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_STAObject) as ISTAObject;
- end;
-
- end.
-